package com.yp;

import org.springframework.ai.chat.ChatResponse;
import reactor.core.publisher.Flux;

public interface IAiService {
    /**
     * 非流式输出
     */
    ChatResponse generate(String model, String message);

    /**
     * 流式输出
     */
    Flux<ChatResponse> generateStream(String model, String message);

    /**
     * 使用RAG增强流式输出
     */
    Flux<ChatResponse> generateStreamRag(String model, String ragTag, String message);
}
